/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/home',
    component: () => import('@/views/layouts/index'),
    redirect: { name: 'Home' }, // 修改重定向方式
    meta: {
      title: '询盘商机',
      keepAlive: true
    },
    children: [
      {
        path: '/sjinfolist',
        name: 'sjinfolist',
        component: () => import('@/views/home/sjinfolist'),
        meta: { title: '商机列表', keepAlive: false, isBack: false }
      },
      {
        path: '', // 修正为空白路径
        name: 'Home',
        component: () => import('@/views/home/index'), // 确保组件路径正确
        meta: { title: '询盘商机', keepAlive: false }
      },
      {
        path: '/hycenter',
        name: 'hycenter',
        component: () => import('@/views/home/hycenter'),
        meta: { title: '会员中心', keepAlive: false, isBack: true }
      },

      {
        path: '/myorder',
        name: 'myorder',
        component: () => import('@/views/home/myorder'),
        meta: { title: '我的商机', keepAlive: false, isBack: false }
      }
    ]
  },

  {
    path: '/addyj',
    name: 'addyj',
    component: () => import('@/views/edit/addyj'),
    meta: { title: '业绩录入', keepAlive: false, isBack: true }
  },
  {
    path: '/addTask',
    name: 'addTask',
    component: () => import('@/views/edit/addTask'),
    meta: { title: '任务录入', keepAlive: false, isBack: true }
  },
  {
    path: '/tasklist',
    name: 'tasklist',
    component: () => import('@/views/edit/tasklist'),
    meta: { title: '任务审核', keepAlive: false, isBack: true }

  },
  {
    path: '/makeTask',
    name: 'makeTask',
    component: () => import('@/views/edit/makeTask'),
    meta: { title: '任务下发', keepAlive: false, isBack: true }

  },

  {
    path: '/addFy',
    name: 'addFy',
    component: () => import('@/views/edit/addFy'),
    meta: { title: '费用填报', keepAlive: false, isBack: true }

  },

  {
    path: '/ywyAchieveMents',
    name: 'ywyAchieveMents',
    component: () => import('@/views/home/ywyAchieveMents'),
    meta: { title: '业务员业绩', keepAlive: false, isBack: true }

  },

  {
    path: '/ydjzqk',
    name: 'ydjzqk',
    component: () => import('@/views/home/ydjzqk'),
    meta: { title: '月度进展情况详情', keepAlive: false, isBack: true }

  },

  {
    path: '/rwqkDetail',
    name: 'rwqkDetail',
    component: () => import('@/views/home/rwqkDetail'),
    meta: { title: '任务填报进展情况', keepAlive: false, isBack: true }
  },

  {
    path: '/myAchievements',
    name: 'myAchievements',
    component: () => import('@/views/search/myAchievements'),
    meta: { title: '我的业绩', keepAlive: true, isBack: true }
  },
  {
    path: '/myTask',
    name: 'myTask',
    component: () => import('@/views/search/myTask'),
    meta: { title: '我的任务', keepAlive: false, isBack: true }
  },

  {
    path: '/myCost',
    name: 'myCost',
    component: () => import('@/views/search/myCost'),
    meta: { title: '我的费用', keepAlive: false, isBack: true }
  },

  {
    path: '/customer',
    name: 'customer',
    component: () => import('@/views/edit/customer'),
    meta: { title: '客户资源', keepAlive: false, isBack: true }
  },

  {
    path: '/payroll',
    name: 'payroll',
    component: () => import('@/views/home/payroll'),
    meta: { title: '工资表确认', keepAlive: false, isBack: true }
  },
  {
    path: '/showYjmx',
    name: 'showYjmx',
    component: () => import('@/views/edit/yjmxdetail'),
    meta: { title: '工资表确认', keepAlive: false, isBack: true }
  },
  {
    path: '/dkkt',
    name: 'dkkt',
    component: () => import('@/views/edit/dkktList'),
    meta: { title: '端口开通', keepAlive: false, isBack: true }
  },
  {
    path: '/dkktDetail',
    name: 'dkktDetail',
    component: () => import('@/views/edit/dkktDetail'),
    meta: { title: '端口明细', keepAlive: false, isBack: true }
  },

  {
    path: '/jobplan',
    name: 'jobplan',
    component: () => import('@/views/edit/jobplan'),
    meta: { title: '工作计划', keepAlive: false, isBack: true }
  },

  {
    path: '/jobrecord',
    name: 'jobrecord',
    component: () => import('@/views/edit/jobrecord'),
    meta: { title: '工作计划', keepAlive: false, isBack: true }
  },

  {
    path: '/reviewYwyJob',
    name: 'reviewYwyJob',
    component: () => import('@/views/edit/reviewYwyJob'),
    meta: { title: '工作复盘', keepAlive: false, isBack: true }
  },
  {
    path: '/myGzhb',
    name: 'myGzhb',
    component: () => import('@/views/search/myGzhb'),
    meta: { title: '工作复盘', keepAlive: false, isBack: true }
  },
  {
    path: '/addCustomer',
    name: 'addCustomer',
    component: () => import('@/views/crm/addCustomer'),
    meta: { title: '添加客户', keepAlive: false, isBack: true }
  },
  {
    path: '/addProductApply',
    name: 'addProductApply',
    component: () => import('@/views/crm/addProductApply'),
    meta: { title: '申请样品', keepAlive: false, isBack: true }
  },
  {
    path: '/trackCustomer',
    name: 'trackCustomer',
    component: () => import('@/views/crm/trackCustomer'),
    meta: { title: '跟踪客户', keepAlive: false, isBack: true }
  },
  {
    path: '/addOrder',
    name: 'addOrder',
    component: () => import('@/views/crm/addOrder'),
    meta: { title: '客户下单', keepAlive: true, isBack: true }
  },
  {
    path: '/customerList',
    name: 'customerList',
    component: () => import('@/views/crm/customerList'),
    meta: { title: '客户列表', keepAlive: false, isBack: true }
  },
  {
    path: '/success',
    name: 'success',
    component: () => import('@/views/crm/success'),
    meta: { title: '提交成功', keepAlive: false, isBack: true }
  },
  {
    path: '/orderList',
    name: 'orderList',
    component: () => import('@/views/crm/orderList'),
    meta: { title: '订单列表', keepAlive: false, isBack: true }
  },
  {
    path: '/sjinfolist',
    name: 'sjinfolist',
    component: () => import('@/views/home/sjinfolist'),
    meta: { title: '商机列表', keepAlive: false, isBack: true }
  },

  {
    path: '/recharge',
    name: 'recharge',
    component: () => import('@/views/home/recharge'),
    meta: { title: '充值', keepAlive: false, isBack: true }
  },

  {
    path: '/rechargehy',
    name: 'rechargehy',
    component: () => import('@/views/home/rechargehy'),
    meta: { title: '升级会员', keepAlive: false, isBack: true }
  },

  {
    path: '/dzsjinfo',
    name: 'dzsjinfo',
    component: () => import('@/views/home/dzsjinfo'),
    meta: { title: '定制商机', keepAlive: false, isBack: true }
  },

  {
    path: '/myorder',
    name: 'myorder',
    component: () => import('@/views/home/myorder'),
    meta: { title: '我的商机', keepAlive: false, isBack: true }
  },

  {
    path: '/hyinfo',
    name: 'hyinfo',
    component: () => import('@/views/home/hyinfo'),
    meta: { title: '完善资料', keepAlive: false, isBack: true }
  },

  {
    path: '/rechargerecord',
    name: 'rechargerecord',
    component: () => import('@/views/home/rechargerecord'),
    meta: { title: '充值记录', keepAlive: false, isBack: true }
  },

  {
    path: '/orderinfolist',
    name: 'orderinfolist',
    component: () => import('@/views/home/orderinfolist'),
    meta: { title: '消费记录', keepAlive: false, isBack: true }
  },

  {
    path: '/orderappeal',
    name: 'orderappeal',
    component: () => import('@/views/home/orderappeal'),
    meta: { title: '订单申诉', keepAlive: false, isBack: true } 
  },
  
  {
    path: '/orderappeallist',
    name: 'orderappeallist',
    component: () => import('@/views/home/orderappeallist'),
    meta: { title: '申诉列表', keepAlive: false, isBack: true } 
  },

  {
    path: '/xieyi',
    name: 'xieyi',
    component: () => import('@/views/home/xieyi'),
    meta: { title: '申诉列表', keepAlive: false, isBack: true } 
  },

  {
    path: '/zhiding',
    name: 'zhiding',
    component: () => import('@/views/home/zhiding'),
    meta: { title: '客户下单', keepAlive: false, isBack: true }
  },

  
  {
    path: '/shengyin',
    name: 'shengyin',
    component: () => import('@/views/home/shengyin'),
    meta: { title: '客户下单', keepAlive: false, isBack: true }
  },

  {
    path: '/xqinfo',
    name: 'xqinfo',
    component: () => import('@/views/home/xqinfo'),
    meta: { title: '找品需求', keepAlive: false, isBack: true }
  }
]
